import sys

import jieba.analyse

# TODO:在服务器装下结巴库和配置下python
if __name__ == '__main__':
    content = sys.argv[1]
    # print(jieba.analyse.extract_tags(content, topK=20, withWeight=False, allowPOS=('ns', 'n', 'vn', 'v')))
    print(jieba.analyse.textrank(content, topK=20, withWeight=False, allowPOS=('ns', 'n', 'vn', 'v')))
